import React ,{Suspense }from "react";
import ReactDOM from "react-dom/client";
import { BrowserRouter } from "react-router-dom";
import { Provider } from "react-redux";
import store from "./redux/store.ts";
import Routes from "./router/index.tsx";
import './index.scss'
// react样式
import 'normalize.css'
const node = (
  // <React.StrictMode>
    <Provider store={store} >
      <BrowserRouter >
      <Suspense>
      <Routes />
      </Suspense>
      </BrowserRouter>
    </Provider>
  // </React.StrictMode>
);

const root = document.getElementById("root");
ReactDOM.createRoot(root).render(node);